<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      a {
        display: inline-block;
        width: 50px;
        height: 50px;
      }
      .currentpage {
        background-color: aqua;
        color: white;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <a
        v-for="item in pageinfo.nums"
        :class="{currentpage:item===pageinfo.currentpage}"
        >{{item}}</a
      >
    </div>
    <script src="../lib/vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data: {
          pageinfo: {
            nums: [10, 11, 12, 13, 14, 14],
            currentpage: 12,
          },
        },
      })
    </script>
  </body>
</html>
